import 'package:flutter_tts/flutter_tts.dart';

import 'base_handler.dart';

class TtsHandler extends BaseHandler {

  @override
  String name = "tts";

  @override
  void handler(dynamic data, dynamic responseCallback) async {
    String text = data['text'];
    FlutterTts flutterTts = FlutterTts();
    var result = await flutterTts.speak(text);
  }
}